package com.xzx.car_accessories.domain;

import ch.qos.logback.core.joran.action.NOPAction;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.JsonSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
//import jdk.nashorn.internal.objects.annotations.Constructor;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * @author: geeshaw
 * @date:   2021/7/11 12:58
 * @email:  shaw@bupt.edu.cn
 * @desc:   汽车配件实体
 **/


@ApiModel(description="汽车配件实体")
@NoArgsConstructor
@AllArgsConstructor
@Data
//配件ID、配件名称、厂家、库存个数、入库个数、出库个数、最新入库时间、最新出库时间等，其他属性可自由发挥。
public class CarAccessory {

    public CarAccessory(String id, Long cid, String cname, String category, String manufacturer) {
        this.id = id;
        this.cid = cid;
        this.cname = cname;
        this.category = category;
        this.manufacturer = manufacturer;
        this.create_time = null;
        this.update_time = null;
    }
    public CarAccessory( Long cid, String cname, String category, String manufacturer) {
        this.cid = cid;
        this.cname = cname;
        this.category = category;
        this.manufacturer = manufacturer;
        this.create_time = null;
        this.update_time = null;
    }
    @ApiModelProperty("自增ID")
    private String id;
    @ApiModelProperty("配件ID")
    private Long cid;
    @ApiModelProperty("配件名称")
    private String cname;
    @ApiModelProperty("配件类别")
    private String category;
    @ApiModelProperty("配件厂家")
    private String manufacturer;
    @ApiModelProperty("创建日期")
    private String create_time;
    @ApiModelProperty("修改日期")
    private String update_time;
}
